﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace HNCSolutions.Controllers
{
    public class TinTucController : Controller
    {
        //
        // GET: /TinTuc/

        public ActionResult Index()
        {
            return View();
        }

        public PartialViewResult _TinTuc(int soluongTin)
        {
            HNCSolutions.Models.HNCSolutionsEntities dataContext = new Models.HNCSolutionsEntities();
            var model = dataContext.TinTucs.Take(soluongTin).ToList();
            return PartialView(model);
        }
    }
}
